package com.gmail.dengtao.joe.group.interceptor;

public class InterceptorEntity {
	
	/** Previous InterceptorEntity */
	private InterceptorEntity prevEntity;
	/** Next FilterEntity */
	private InterceptorEntity nextEntity;
	/** filter name */
	private String name;
	/** filter instances */
	private Interceptor interceptor;
	/** Next filter instances */
	private Interceptor nextInterceptor;
	
	public InterceptorEntity(InterceptorEntity prevEntry, InterceptorEntity nextEntry,
			String name, Interceptor interceptor) {
		if (name == null) {
			throw new IllegalArgumentException("name");
		}
		setPrevEntity(prevEntry);
		setNextEntity(nextEntry);
		this.name = name;
		setInterceptor(interceptor);
	}
	
	public InterceptorEntity getPrevEntity() {
		return prevEntity;
	}
	public void setPrevEntity(InterceptorEntity prevEntity) {
		this.prevEntity = prevEntity;
	}
	public InterceptorEntity getNextEntity() {
		return nextEntity;
	}
	public void setNextEntity(InterceptorEntity nextEntity) {
		this.nextEntity = nextEntity;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Interceptor getInterceptor() {
		return interceptor;
	}
	public void setInterceptor(Interceptor interceptor) {
		this.interceptor = interceptor;
	}

	public Interceptor getNextInterceptor() {
		return nextInterceptor;
	}

	public void setNextInterceptor(Interceptor nextInterceptor) {
		this.nextInterceptor = nextInterceptor;
	}
}
